.aiModal {
  :global {
    .ant-modal-content {
      padding: 16px !important;
      border-radius: 8px;
      .ant-modal-body {
        padding: 0 !important;
      }
    }
  }
}

.modalContent {
  .radioGroup {
    display: flex;
    gap: 12px;

    .radioButton {
      height: 36px;
      padding: 0 16px;
      border: 1px solid #d9d9d9;
      border-radius: 20px;
      background: #f7f3ff;
      color: #333;
      font-size: 14px;
      display: flex;
      align-items: center;
      cursor: pointer;
      white-space: nowrap;
    }
  }

  .resultBox {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 5px;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 16px;

    .heading1 {
      font-weight: 500;
      margin-bottom: 8px;
      color: #333;
    }

    .heading2 {
      font-weight: 500;
      margin-top: 12px;
      margin-bottom: 8px;
      color: #333;
    }

    .listItem {
      padding-left: 8px;
      margin: 4px 0;
      color: #333;
    }

    .numberedItem {
      padding-left: 8px;
      margin: 4px 0;
      color: #333;
    }

    .textLine {
      margin: 4px 0;
      color: #333;
    }
  }

  .buttonGroup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;

    .leftButtons {
      display: flex;
      gap: 8px;

      :global {
        .ant-btn {
          height: 32px;
          padding: 0 16px;
          border-radius: 6px;
          font-size: 14px;
        }
      }
    }

    .rightIcons {
      display: flex;
      gap: 16px;

      .actionIcon {
        font-size: 16px;
        color: #666;
        cursor: pointer;

        &:hover {
          color: #333;
        }
      }
    }
  }

  .inputWrapper {
    position: relative;
    margin-top: 16px !important;

    :global {
      .ant-input {
        border-radius: 4px;
        resize: none;
        padding-right: 24px;
      }
    }

    .arrowIcon {
      position: absolute;
      right: 8px;
      bottom: 8px;
      color: #999;
      font-size: 20px;
      transform: rotate(90deg);
    }
  }
}

.aiDropdown {
  :global {
    .ant-dropdown-menu {
      min-width: 120px;
      padding: 4px;
      border-radius: 6px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

      .ant-dropdown-menu-item {
        padding: 8px 12px;
        border-radius: 4px;
        line-height: 1.5;
        color: rgba(0, 0, 0, 0.85);
        cursor: pointer;
        transition: all 0.3s;

        &:hover {
          background-color: #f5f5f5;
        }
      }
    }
  }
}